package com.horay.springclouddemo.sentinel.client.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 限流控制器
 *
 * @author heyingcheng
 * @date 2020/3/30 0:58
 */
@Slf4j
@RestController
@RequestMapping("sentinel/flow/limit")
public class FlowLimitController {

    @GetMapping("restA")
    public String restfulA() {
        log.info("{}, Method:restA", FlowLimitController.class.getName());
        return "------restA";
    }

    @GetMapping("restB")
    public String restB() {
        log.info("{}, Method:restB", FlowLimitController.class.getName());
        return "------restB";
    }

}
